package com.example.mine_platform.mapper;

import com.example.mine_platform.pojo.entities.HistoryPassword;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface HistoryPasswordMapper extends Mapper<HistoryPassword> {
    @Select("select * from historypassword where user_id=#{id} and deleted=0;")
    List<HistoryPassword> getpwd(Integer id);

    @Update("update historypassword set deleted=1 where id=#{id}")
    void update(Integer id);

}